
#ifndef PLAYYARDWIDGET_H
#define PLAYYARDWIDGET_H

#include <BScrollArea>

#include "ClassRoom.h"

class PlayYardWidget : public BScrollArea
{
	BOBJECT(PlayYardWidget);
public:
	PlayYardWidget(BWidget* parent = 0);
	~PlayYardWidget();

	virtual bool setAsset(const BValue& asset);

	virtual const BString& realTips() const;

protected:
	void slotClassRoomInsert(BObject* object, const BValue& value);

protected:
	virtual void scrolling(Orientation orientation);

protected:
	virtual void freshEvent(const BEvent& event);
	virtual void paintEvent(const BEvent& event);

	virtual void mouseMoveEvent(const BMouseEvent& mouseEvent);

private:
	bool		_dirty;
	ClassMate*	_hoveredMate;
};
#endif
